{if function_exists('adsenseShow')}
<p class="text-center">{:adsenseShow("image300")}</p>
{/if}
<div class="bg-white pt-3 px-3">
{if in_array($controll, ['index','category','tag'])}
<h6><a class="text-purple" href="{:cmsUrl('cms/page/views')}">人气排行</a></h6>
<ul class="list-unstyled">
  {volist name=":cmsSelect(['term_id'=>$term_id,'status'=>'normal','limit'=>10,'sort'=>'info_views','order'=>'desc','field'=>'info_name,info_slug,info_action'])" id="cms"}
  <li class="py-2"><a href="{:cmsUrlDetail($cms)}">{$cms.info_name|DcHtml}</a></li>
  {/volist}
</ul>
{else/}
<h6><a class="text-purple" href="{:cmsUrl('cms/page/news')}">近期文章</a></h6>
<ul class="list-unstyled">
  {volist name=":cmsSelect(['status'=>'normal','limit'=>10,'sort'=>'info_id','order'=>'desc','field'=>'info_name,info_slug,info_action'])" id="cms"}
  <li class="py-2"><a href="{:cmsUrlDetail($cms)}">{$cms.info_name|DcHtml}</a></li>
  {/volist}
</ul>
{/if}
<h6><a class="text-purple" href="{:cmsUrl('cms/categorys/index')}">网站分类</a></h6>
<ul class="list-unstyled row">
  {volist name=":cmsCategorySelect(['status'=>'normal','limit'=>60,'sort'=>'term_id','order'=>'desc'])" id="category"}
  <li class="py-2 col-6"><a href="{:cmsUrlCategory($category)}" title="{$category.term_name}">{$category.term_name|cmsSubstr=0,4,false}</a></li>
  {/volist}
</ul>
<h6><a class="text-purple" href="{:cmsUrl('cms/tags/index')}">热门标签</a></h6>
<ul class="list-unstyled row">
  {volist name=":cmsTagSelect(['status'=>'normal','limit'=>30,'sort'=>'term_count','order'=>'desc'])" id="tag"}
  <li class="py-2 col-6"><a href="{:cmsUrlTag($tag)}" title="{$tag.term_name}">{$tag.term_name|cmsSubstr=0,4,false}</a></li>
  {/volist}
</ul>
</div>